export const getDate = () => {
  const date = new Date()
  const y = date.getFullYear()
  let m = date.getMonth() + 1
  let d = date.getDate()
  // 一个月有多少天
  const days = new Date(y, m, 0).getDate()
  // 第一天是周几
  const weekDay = new Date(y, m - 1, 1).getDay()
  // m = m.toString().padStart(2, 0)

  return [y, m, d, days, weekDay]
}
